<template>
    <div>
       <!-- 列表显示 -->
      <div>
    <el-table  border ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%">

    <el-table-column type="selection" width="80"></el-table-column>

    <el-table-column prop="shenqingid" label="#" width="130"></el-table-column>

    <el-table-column prop="myname" label="标题" width="160"></el-table-column>   

    <el-table-column prop="state" label="状态" width="170"></el-table-column>

    <el-table-column  prop="starttime" label="创建时间" width="190">
      <template slot-scope="scope">{{ scope.row.starttime }}</template>
    </el-table-column>
   
    <el-table-column prop="endtime"  label="提交申请时间" width="190">
      <template slot-scope="scope">{{ scope.row.endtime }}</template>
    </el-table-column>

    <el-table-column label="操作" width="220">
      <template slot-scope="">
        <el-button  type="text" size="small">通过</el-button>
        <el-button type="text" size="small">部署发布</el-button>
        <el-button type="text" size="small">驳回</el-button>
        <el-button  type="text" size="small">删除</el-button>
      </template>
    </el-table-column>
  </el-table>
  <br>
  <!-- <el-pagination
       @size-change="handleSizeChange"
      @current-change="handleCurrentChange" 
      :current-page="currentPage4"
      :page-sizes="[5, 10, 20, 50]"
      :page-size="5"
      layout="total, sizes, prev, pager, next, jumper" :total="5">
    </el-pagination> -->
    </div>
    </div>
</template>
<script>
import { queryTask,querylists} from "@/api/activiti"; 
export default {
    data() {
        return {
           tableData: [],
         currentPage4: 4,
         listQuery: {
        page: 1,
        limit: 20,
        importance: undefined,
        title: undefined,
        type: undefined,
        sort: '+id'
      },
        }
        },
    created() {
    this.getList();
  },
  methods: {
    getList() {    
     // console.log();
      this.listLoading = false
      querylists(this.tableData).then(response => {
        
        console.log("------");
        this.tableData = response.data
        console.log(response.data);
        this.total = response.data.total
        setTimeout(() => {
          this.listLoading = false
        }, 1.5 * 1000)
      })
    },
}
  
}
                
</script>